package com.cdn.allmobilestore.ulti;


import android.graphics.Bitmap;

import com.cdn.allmobilestore.R;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.assist.ImageScaleType;
import com.nostra13.universalimageloader.core.display.SimpleBitmapDisplayer;

public class ImageLoadOption {
	public static DisplayImageOptions options = 
	new DisplayImageOptions.Builder()
	.cacheInMemory()	
	.cacheOnDisc()
	.resetViewBeforeLoading()		
	.bitmapConfig(Bitmap.Config.RGB_565)
	.imageScaleType(ImageScaleType.EXACTLY)
	.displayer(new SimpleBitmapDisplayer()).build(); 
	
	
	public static DisplayImageOptions options_icon = 
			new DisplayImageOptions.Builder()
			.cacheInMemory()
			.showImageForEmptyUri(R.drawable.place_holder_icon)
			.showImageOnFail(R.drawable.place_holder_icon)
			.showStubImage(R.drawable.place_holder_icon)
			.cacheOnDisc()
			.resetViewBeforeLoading()		
			.bitmapConfig(Bitmap.Config.RGB_565)
			.imageScaleType(ImageScaleType.EXACTLY)
			.displayer(new SimpleBitmapDisplayer()).build(); 
	
	public static DisplayImageOptions options_gallery = 
			new DisplayImageOptions.Builder()
			.cacheInMemory()
			.showImageForEmptyUri(R.drawable.place_holder_screen)
			.showImageOnFail(R.drawable.place_holder_screen)
			.showStubImage(R.drawable.place_holder_screen)
			.cacheOnDisc()
			.resetViewBeforeLoading()		
			.bitmapConfig(Bitmap.Config.RGB_565)
			.imageScaleType(ImageScaleType.EXACTLY)
			.displayer(new SimpleBitmapDisplayer()).build(); 

}
